From 0c9397ce72eef17fa62248f8a7e94746a5aa26c5 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Thu, 6 May 2010 10:55:04 +0200 Subject: [PATCH] Split documentation into gpsbabel-doc. --- debian/control | 27 +++++++- ...se-common => gpsbabel-doc.doc-base-common} | 0 ...doc-base-pdf => gpsbabel-doc.doc-base-pdf} | 0 debian/gpsbabel-doc.install | 1 + debian/gpsbabel-doc.links | 1 + debian/gpsbabel.docs | 1 - debian/rules | 67 ++++++++++++------- 7 files changed, 68 insertions(+), 29 deletions(-) rename debian/{gpsbabel.doc-base-common => gpsbabel-doc.doc-base-common} (100%) rename debian/{gpsbabel.doc-base-pdf => gpsbabel-doc.doc-base-pdf} (100%) create mode 100644 debian/gpsbabel-doc.install create mode 100644 debian/gpsbabel-doc.links diff --git a/debian/control b/debian/control index efc910f4a..9463c6b48 100644 --- a/debian/control +++ b/debian/control @@ -5,9 +5,10 @@ Maintainer: Bernd Zeimetz Build-Depends: debhelper (>= 7.0.0), quilt, autotools-dev, autoconf, libexpat1-dev, expat, help2man, - fop [!mips], - xsltproc, docbook-xml, docbook-xsl, libxml2-utils, - libusb-dev, zlib1g-dev, libpaper-dev, libqt4-dev + libxml2-utils, + libusb-dev, zlib1g-dev, libqt4-dev +Build-Depends-Indep: fop [!mips], xsltproc, docbook-xml, + docbook-xsl, libpaper-dev Standards-Version: 3.8.4 Homepage: http://www.gpsbabel.org/ Vcs-Browser: http://git.recluse.de/debian/pkg-gpsbabel.git/ @@ -15,6 +16,7 @@ Vcs-Git: git://git.recluse.de/debian/pkg-gpsbabel.git Package: gpsbabel Architecture: any +Recommends: gpsbabel-doc Depends: ${shlibs:Depends}, ${misc:Depends} Description: GPS file conversion plus transfer to/from GPS units GPSBabel converts waypoints, tracks, and routes from one format to @@ -42,6 +44,25 @@ Description: GPS file conversion plus transfer to/from GPS units Tab-separated data, Tiger, TopoMapPro, Topo by National Geographic, xcsv, xmap, xmapwpt. +Package: gpsbabel-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Suggests: gpsbabel, pdf-viewer | www-browser +Description: GPS file conversion plus transfer to/from GPS units + GPSBabel converts waypoints, tracks, and routes from one format to + another, whether that format is a common mapping format like Delorme, + Streets and Trips, or even a serial upload or download to a GPS unit + such as those from Garmin and Magellan. + . + GPSBabel supports dozens of data formats and will be useful for tasks + such as geocaching, mapping, and converting from one GPS unit to another. + Among the interesting formats it supports are several GPS devices via + a serial link, various PDA-based mapping programs, and various + Geocaching data formats. + . + This package contains the detailed documentation of gpsbabel. + Package: gpsbabel-gui Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} diff --git a/debian/gpsbabel.doc-base-common b/debian/gpsbabel-doc.doc-base-common similarity index 100% rename from debian/gpsbabel.doc-base-common rename to debian/gpsbabel-doc.doc-base-common diff --git a/debian/gpsbabel.doc-base-pdf b/debian/gpsbabel-doc.doc-base-pdf similarity index 100% rename from debian/gpsbabel.doc-base-pdf rename to debian/gpsbabel-doc.doc-base-pdf diff --git a/debian/gpsbabel-doc.install b/debian/gpsbabel-doc.install new file mode 100644 index 000000000..71d2e655d --- /dev/null +++ b/debian/gpsbabel-doc.install @@ -0,0 +1 @@ +debian/doctmp/* usr/share/doc/gpsbabel diff --git a/debian/gpsbabel-doc.links b/debian/gpsbabel-doc.links new file mode 100644 index 000000000..0a5be16cb --- /dev/null +++ b/debian/gpsbabel-doc.links @@ -0,0 +1 @@ +usr/share/doc/gpsbabel usr/share/doc/gpsbabel-doc/doc diff --git a/debian/gpsbabel.docs b/debian/gpsbabel.docs index e2de8ee8e..5734f6236 100644 --- a/debian/gpsbabel.docs +++ b/debian/gpsbabel.docs @@ -1,3 +1,2 @@ README.* -debian/doctmp/* AUTHORS diff --git a/debian/rules b/debian/rules index 8f3be076c..286e71a2a 100755 --- a/debian/rules +++ b/debian/rules @@ -61,8 +61,10 @@ debian/gpsbabel.1: build-stamp gui/Makefile: $(QUILT_STAMPFN) cd gui && qmake-qt4 -BUILD_TARGETS = build-stamp build-gui-stamp build-doc-stamp debian/gpsbabel.1 -build: $(BUILD_TARGETS) +BUILD_TARGETS_ARCH = build-stamp build-gui-stamp debian/gpsbabel.1 +BUILD_TARGETS_INDEP = build-doc-stamp +# indep targets are only built by binary-indep. +build: $(BUILD_TARGETS_ARCH) build-stamp: configure-stamp dh_testdir @@ -76,12 +78,12 @@ build-stamp: configure-stamp build-doc-stamp: configure-stamp $(MAKE) $(DOCTEMP)/htmldoc-devel/index.html WEB=$(DOCTEMP) DOCVERSION=devel - cp $(CURDIR)/debian/gpsbabel.doc-base-common $(CURDIR)/debian/gpsbabel.doc-base + cp $(CURDIR)/debian/gpsbabel-doc.doc-base-common $(CURDIR)/debian/gpsbabel-doc.doc-base ifneq (mips,$(HOSTARCH)) $(MAKE) gpsbabel.pdf WEB=$(DOCTEMP) DOCVERSION=devel rm -f $(CURDIR)/$(DOCTEMP)/htmldoc-devel/gpsbabel-$(DOCVERSION).pdf DOCVERSION=devel cp gpsbabel.pdf $(CURDIR)/$(DOCTEMP) - cat $(CURDIR)/debian/gpsbabel.doc-base-pdf >> $(CURDIR)/debian/gpsbabel.doc-base + cat $(CURDIR)/debian/gpsbabel-doc.doc-base-pdf >> $(CURDIR)/debian/gpsbabel-doc.doc-base endif touch $@ @@ -115,45 +117,60 @@ clean-patched: xmldoc/filters/options/track-trk2seg.xml \ xmldoc/filters/options/track-seg2trk.xml rm -f gbversion.h - rm -f $(CURDIR)/debian/gpsbabel.doc-base + rm -f $(CURDIR)/debian/gpsbabel-doc.doc-base dh_clean -install: $(BUILD_TARGETS) +install-prep: dh_testdir dh_testroot dh_prep - dh_installdirs + dh_installdirs + +install-arch: $(BUILD_TARGETS_ARCH) install-prep # Add here commands to install the package into debian/gpsbabel. $(MAKE) install DESTDIR=$(CURDIR)/debian/gpsbabel + dh_install -a + +install-indep: $(BUILD_TARGETS_INDEP) install-prep # Rename htmldoc dir mv `ls -d $(CURDIR)/debian/doctmp/htmldoc-*` $(CURDIR)/debian/doctmp/htmldoc - dh_install + dh_install -i + +install: install-arch install-indep # Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. +binary-indep: build-indep install-indep + dh_testdir + dh_testroot + dh_installchangelogs -i + dh_installdocs -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i # Build architecture-dependent files here. -binary-arch: build install +binary-arch: build-arch install-arch dh_testdir dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb + dh_installchangelogs -a + dh_installdocs -a + dh_installman -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure +.PHONY: build clean binary-indep binary-arch binary install install-prep install-arch install-indep build-arch build-indep configure -- 2.30.2